from Adtection.Adtection import Adtection
import pandas as pd
import time

data = pd.read_csv(r"C:\Users\lvcheng\Desktop\心电特征提取\LSTM异常检测\datas\MIT\N.csv").values
# data = pd.read_csv(r"E:\smart-medicine\ECG_Machine learning\心电预测\data.csv",usecols=["x"]).values
model = Adtection()
s1 = time.time()
text = model.predict(data[3].tolist())
s2 = time.time()
print("预测结果:",text)
print("花费时间: %.4f s"%(s2-s1))
